package cn.ihoway.redis;

import cn.ihoway.entity.Room;
import cn.ihoway.util.HowayLog;
import cn.ihoway.util.HowayRedisCache;

public class RoomRedis {
    private HowayRedisCache cache = new HowayRedisCache(Room.class.getName());
    private final HowayLog logger = new HowayLog(RoomRedis.class);

    public void put(String roomId,Room room){
        cache.putObject(roomId,room);
    }
    public Room get(String roomId){
        return (Room) cache.getObject(roomId);
    }
}
